Welcome Guest, you are in: Login
CTS Futures

Page History: Order Cancel Request

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/12/12 14:38



Canceling Working Orders

The Order Cancel Request message (MsgType=F) is used by the T4 FIX API to electronically cancel (i.e. pull) working orders. This message is utilized for all CTS strategy types including outright futures, futures options, spreads and other multileg strategies.

The identification of the instrument for which the cancellation is submitted is established with the following tags: Tag 48 (SecurityID), Tag 55 (Symbol) and Tag 207 (SecurityExchange). Note that under CTS terminology, SecurityID is equivalent to MarketID, Symbol is equivalent to ContractID and SecurityExchange is equivalent to ExchangeID.

In addition to full specification of the market, all cancel requests must be uniquely identified with a verbose (>12 characters) Client Order Id (Tag 11).

Identifying the Order to be Canceled

Working Orders to be canceled can be identified by using the working order (client-side) identifier or the (T4 FIX API generated) order identifier. For the cancel request message, the OrigClOrdId (Tag 41) and the OrderId (Tag 37) would be supplied. Orders that have experienced rejections can subsequently be canceled with OrderId or by using the ClOrdId of the previous rejection.

Orders submitted outside the T4 FIX API (e.g. the CTS T4 Front-End and/or custom T4 API application) can only be canceled with OrderId (Tag 37). As OrigOrdClId is undetermined but a required tag for the cancel request order, the OrigOrdClId (Tag 41) is set with the value of the OrderId (Tag 37). To cover all scenarios, it is recommended that both OrigClOrdId (Tag 41) and OrderId (Tag 37) be specified for all cancel requests.

Note that malformed cancel request orders (including missing required tags, empty tags, invalid tag value range, etc.) will be rejected with a FIX Session Reject message. Business level rejections are manisfested with Cancel Reject messages.


Message Dictionary

TagField NameReq'dComments
Standard HeaderYMsgType = F
1AccountNAccount for which the order is submitted.
11ClOrdIDY(Client-Side) identifier for this replace order. Must be unique.
41OrigClOrdIDY(Client-Side) ClOrdID (Tag 11) of the target working order. (NOT the initial order of the order chain).
37OrderIdNUnique identifier for the target working order as assigned by T4 servers. OrderId uniqueness is guaranteed accross all trading sessions regardless of its order entry source.
48SecurityIDYSecurity identifier. This is the T4 Market ID.
55SymbolYSymbol. This is the T4 Contract ID.
207SecurityExchangeYExchange at which the security trades. This is the T4 Exchange ID.
167SecurityTypeNInstrument type. Futures="FUT", Options="OPT", Stock="STK", Synthetic="SYN", Binary Option="BIN"
54SideYSide of the market. Valid values are:
0 = None (used for Flatten orders)
1 = Buy
2 = Sell
38OrderQtyNThe number of contracts to be replaced. For partially filled orders, this value reflects the working order's original Quantity (OrderQty) and not its remaining quantity.
60TransactTimeYTime this order was requested for. Specified in UTC form.
58TextNFree form Text.
109CliendIDNFirm identification for third-party transactions
107SecurityDescNSecurity Description as specified by Security ID (Tag 48)
Standard TrailerY


Sample Messages

Canceling a Working Order entered through the T4 FIX API


[FIXCANCEL] 34=290|49=T4Test|56=test|50=Ernesto|52=20121212-20:27:03.637|1=ernesto|11=fc-634909192236370301|37=FA657BC9-A1D2-4644-B558-A1155C731DA4|41=fr-634909107579297721|48=CME_20121200_ESZ2|54=1|55=ES|207=CME_Eq|60=20121212-20:27:03.637|167=FUT|
[FIXCANCEL]

[MsgSeqNum] 34 = 290
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = Ernesto
[SendingTime] 52 = 20121212-20:27:03.637
[Account] 1 = ernesto
[ClOrdID] 11 = fc-634909192236370301
[OrderID] 37 = FA657BC9-A1D2-4644-B558-A1155C731DA4
[OrigClOrdID] 41 = fr-634909107579297721
[SecurityID] 48 = CME_20121200_ESZ2
[Side] 54 = 1 (BUY)
[Symbol] 55 = ES
[SecurityExchange] 207 = CME_Eq
[TransactTime] 60 = 20121212-20:27:03.637
[SecurityType] 167 = FUT (FUTURE)


[fixexecutionreport] 34=648|49=test|56=T4Test|50=T4FIX|52=20121212-20:27:03.715|143=US,IL|1=ernesto|11=fc-634909192236370301|41=fr-634909107579297721|17=48202.71332626389_ESZ2.63490919244745000018.2.FA657BC9|150=4|37=FA657BC9-A1D2-4644-B558-A1155C731DA4|39=4|48=CME_20121200_ESZ2|55=ES|207=CME_Eq|200=201212|59=0|107=E-mini S&P 500 Dec12|54=1|167=FUT|38=1|40=2|44=143075|60=20121212-20:27:24.745|
[FIXEXECUTIONREPORT]

[MsgSeqNum] 34 = 648
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20121212-20:27:03.715
[TargetLocationID] 143 = US,IL
[Account] 1 = ernesto
[ClOrdID] 11 = fc-634909192236370301
[OrigClOrdID] 41 = fr-634909107579297721
[ExecID] 17 = 48202.71332626389_ESZ2.63490919244745000018.2.FA657BC9
[ExecType] 150 = 4 (CANCELED)
[OrderID] 37 = FA657BC9-A1D2-4644-B558-A1155C731DA4
[OrdStatus] 39 = 4 (CANCELED)
[SecurityID] 48 = CME_20121200_ESZ2
[Symbol] 55 = ES
[SecurityExchange] 207 = CME_Eq
[MaturityMonthYear] 200 = 201212
[TimeInForce] 59 = 0 (DAY)
[SecurityDesc] 107 = E-mini S&P 500 Dec12
[Side] 54 = 1 (BUY)
[SecurityType] 167 = FUT (FUTURE)
[OrderQty] 38 = 1
[OrdType] 40 = 2 (LIMIT)
[Price] 44 = 143075
[TransactTime] 60 = 20121212-20:27:24.745



Canceling a Working Order entered through the CTS Front-end


[FIXCANCEL] 34=309|49=T4Test|56=test|50=Ernesto|52=20121212-20:33:42.046|1=ernesto|11=fc-634909196220461298|37=4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653|41=4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653|48=CME_20121200_ESZ2|54=2|55=ES|207=CME_Eq|60=20121212-20:33:42.046|167=FUT|
[FIXCANCEL]

[MsgSeqNum] 34 = 309
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = Ernesto
[SendingTime] 52 = 20121212-20:33:42.046
[Account] 1 = ernesto
[ClOrdID] 11 = fc-634909196220461298
[OrderID] 37 = 4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653
[OrigClOrdID] 41 = 4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653
[SecurityID] 48 = CME_20121200_ESZ2
[Side] 54 = 2 (SELL)
[Symbol] 55 = ES
[SecurityExchange] 207 = CME_Eq
[TransactTime] 60 = 20121212-20:33:42.046
[SecurityType] 167 = FUT (FUTURE)


[fixexecutionreport] 34=787|49=test|56=T4Test|50=T4FIX|52=20121212-20:33:42.092|143=US,IL|1=ernesto|11=fc-634909196220461298|17=48212.71332696293_ESZ2.63490919643143000018.2.4C3DFFB6|150=4|37=4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653|39=4|48=CME_20121200_ESZ2|55=ES|207=CME_Eq|200=201212|59=0|107=E-mini S&P 500 Dec12|54=2|167=FUT|38=1|40=2|44=143525|60=20121212-20:34:03.143|
[FIXEXECUTIONREPORT]

[MsgSeqNum] 34 = 787
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20121212-20:33:42.092
[TargetLocationID] 143 = US,IL
[Account] 1 = ernesto
[ClOrdID] 11 = fc-634909196220461298
[ExecID] 17 = 48212.71332696293_ESZ2.63490919643143000018.2.4C3DFFB6
[ExecType] 150 = 4 (CANCELED)
[OrderID] 37 = 4C3DFFB6-04CC-4B1F-8152-0EC58C9E5653
[OrdStatus] 39 = 4 (CANCELED)
[SecurityID] 48 = CME_20121200_ESZ2
[Symbol] 55 = ES
[SecurityExchange] 207 = CME_Eq
[MaturityMonthYear] 200 = 201212
[TimeInForce] 59 = 0 (DAY)
[SecurityDesc] 107 = E-mini S&P 500 Dec12
[Side] 54 = 2 (SELL)
[SecurityType] 167 = FUT (FUTURE)
[OrderQty] 38 = 1
[OrdType] 40 = 2 (LIMIT)
[Price] 44 = 143525
[TransactTime] 60 = 20121212-20:34:03.143




FIX API Home Page.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

2 Pierce Pl, Suite 200, Itasca, IL 60143

© 2009-2023 Cunningham Trading Systems LLC All rights reserved.